package emploeer;
//老师类
public class Teacher extends Person implements Edit, Consultant {


    Teacher(String name, int age, char gender, double salary) {//构造方法
        super(name, age, gender, salary);
    }



//重写四个抽象方法
    @Override
    void finshWork() {
        System.out.println("我是老师" + "我完成了今天的上课工作");
    }

    @Override
    public void qiYeGuWen() {
        System.out.println(name + "正在做企业顾问");
    }

    @Override//重写抽象方法
    public void editBook() {
        System.out.println(name + "正在编辑书籍");
    }

    @Override
    public void training() {
        System.out.println(name + "正在培训学员");
    }
}
